package com.special.threademo.jvm.classLoader;

import java.lang.management.MemoryUsage;

/**
 * Created with IDEA2020.3
 * author:LiuYC
 * DateTime:2021/1/22  15:17
 */
public class ConstDemo {
    public static void main(String[] args) {
        myConst myConst = new myConst();
        System.out.println("==============");
        myConst myConst2 = new myConst();
        System.out.println("==============");
        // com.special.threademo.jvm.classLoader.myConst myConst1 = new myConst(1);
        myConst[] myConsts = new myConst[1];
        System.out.println(myConsts.getClass());
        // 二位数组的测试！
        myConst[][] myConsts2 = new myConst[1][1];
        System.out.println(myConsts2.getClass());
    }
}

class myConst {
    static {
        System.out.println("test my execute!");
    }
}
